package day4;

import java.util.Scanner;

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main2 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNextInt()) { // 注意 while 处理多个 case
            int num1 = in.nextInt();//A - B
            int num2 = in.nextInt();//B - C
            int num3 = in.nextInt();//A + B
            int num4 = in.nextInt();//B + C

            if(((num3 - num1) / 2) != ((num2 + num4)/2)) {
                System.out.println("No");
                return;
            }
            int A = (num1 + num3) / 2;
            int B = (num2 + num4) / 2;
            int C = (num4 - num2) / 2;
            System.out.printf("%d %d %d",A,B,C);

        }
    }
}
